package com.ry.servcie;

import com.ry.pojo.User;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.Random;

@Service
public class TestUserImpl implements TestUser {
    @Override
    public User getUser(Long userId) {
        User user = new User();
        user.setUserId(userId)
                .setUsername("测试来的")
                .setUserImgUrl("/images/banner.jpg")
                .setPhone("13131313131")
                .setEmail(new Random().nextInt(999999999)+"@qq.com")
                .setCreated(new Date())
                .setUpdated(new Date())
                .setShopId(100l);
        return user;
    }
}
